package com.cloudsigns.factorymanager2.produce.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.BaseActivity;
import com.cloudsigns.factorymanager2.R;

public class ProduceWarehousingInformationActivity extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private TextView tv_submit_num,tv_submit_person,tv_submit_time,tv_warehousing_num,tv_quality_information,tv_experienced_person,tv_handling_time;
    private Button btn_delete;

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.layout_produce_warehousing_information);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back = findViewById(R.id.rl_back);
        tv_title = findViewById(R.id.tv_title);
        tv_submit_num=findViewById(R.id.tv_submit_num);
        tv_submit_person=findViewById(R.id.tv_submit_person);
        tv_submit_time=findViewById(R.id.tv_submit_time);
        tv_warehousing_num=findViewById(R.id.tv_warehousing_num);
        tv_quality_information=findViewById(R.id.tv_quality_information);
        tv_experienced_person=findViewById(R.id.tv_experienced_person);
        tv_handling_time=findViewById(R.id.tv_handling_time);
        btn_delete=findViewById(R.id.btn_delete);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        tv_title.setText(getResources().getString(R.string.warehousing_information));
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        tv_quality_information.setOnClickListener(this);
        btn_delete.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View view) {
        switch (view.getId()) {
            case R.id.rl_back:
                finish();
                break;
                // 质检信息
            case R.id.tv_quality_information:
                Intent intent=new Intent(ProduceWarehousingInformationActivity.this,ProduceWarehousingQualityInformationActivity.class);
                startActivity(intent);
                break;
                // 删除
            case R.id.btn_delete:
                break;
        }
    }
}
